package com.dream.cgomall.dao;

import com.dream.cgomall.dto.*;

import com.dream.cgomall.entity.CgoAdminHistory;
import com.dream.cgomall.entity.CgoGoods;
import com.dream.cgomall.entity.CgoOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CgoAdminHistoryDao {
    //查询历史数
    Integer selectCount(Integer userId);
    //查询所有用户历史商品
    List<CgoGoods> selectAll(Integer userId);
    //查询通过用户id的所有历史商品 每个对象分为日期和goodlist
    List<CgoAdminHistory> selectGoods(Integer userId);
    //删除历史商品
    void deleteById(List idList);
    //清空历史记录
    void deleteAllByUserId(Integer userId);
}
